import React, { Component } from 'react'
import MyContext from '@/utils/cxt'
import GrandSonSon from './GrandSonSon'
export default class GrandSon extends Component {
  render() {
    let pStyle={width:'150px',height:'150px',backgroundColor:'skyblue',display:'flex',justifyContent:'center',alignItems:'center'}
    return (

      <MyContext.Consumer>
            {
                arg=>(<div style={pStyle}>
                    {arg}
                    <GrandSonSon></GrandSonSon>
                </div>)
            }
      </MyContext.Consumer>
     




    )
  }
}
